feat: 個人設定の rules/user-* 推奨ガイダンスと /audit-config コマンド(v0.72.0)#142
Merged
Conversation
- README ja/en に個人設定の推奨配置(rules/user-*.md)を明記 - update 時、CLAUDE.md ユーザーセクションに実コンテンツがある場合のみ非ブロックの tip を 1 行表示(CRLF 耐性つき検出ヘルパー + テスト) - /audit-config 新設: 4 分類レンズ + 削りすぎ防止 + 提案のみ出力の個人設定監査コマンド
There was a problem hiding this comment.
Pull request overview
This PR builds on the reserved user-* namespace by documenting the recommended location for personal always-loaded rules, adding a non-blocking update-time tip when users still keep content in the CLAUDE.md user section, and introducing a new /audit-config command to review personal config for outdated or redundant instructions.
Changes:
- Add
/audit-configslash command to audit user-owned config through four lenses (babysitting / over-prescription / stale-premise / context-tax). - Update README (ja/en) to recommend
~/.claude/rules/user-*.mdfor personal always-loaded preferences and reflect the command count increase (20 → 21). - Add
_claude_md_user_section_has_contentand show a one-line info tip during update when theCLAUDE.mduser section contains real content, with unit test coverage.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tests/unit/test-update-refactor.sh | Adds unit test coverage for detecting real content in the CLAUDE.md user section (drives update tip). |
| README.md | Documents user-*.md recommendation (ja) and adds /audit-config; updates command counts. |
| README.en.md | Documents user-*.md recommendation (en) and adds /audit-config; updates command counts. |
| lib/update.sh | Adds user-section content detection helper and prints a non-blocking tip during update when appropriate. |
| i18n/ja/strings.sh | Adds localized update tip string for user-*.md guidance. |
| i18n/en/strings.sh | Adds localized update tip string for user-*.md guidance. |
| commands/audit-config.md | Introduces the /audit-config command definition and instructions. |
| CHANGELOG.md | Adds release notes for v0.72.0 covering the new guidance, tip, and command. |
Comment on lines
+98
to
+102
| { | ||
| test_name="update: user-section content detection drives the rules/user-* tip" | ||
| _ust_tmp="$(mktemp -d)" | ||
| _SETUP_TMP_FILES+=("$_ust_tmp") | ||
| # scaffold only (heading + placeholder comment) → no tip |
| @@ -0,0 +1,55 @@ | |||
| --- | |||
| description: Audit your personal Claude Code config for outdated, model-babysitting, or redundant instructions. | |||
| argument-hint: [global|project|all] | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
v0.71.1 で予約した
user-*名前空間の活用面を整備する 3 点セット。変更内容
~/.claude/rules/user-*.md推奨と明記。推奨理由は正直に「update との完全分離・ファイル単位管理・予約名保証」とし、コンテキストコストは同一であることも記載検証